Crate ink

source ·

Re-exports

Modules

  • Definitions and utilities for ink! smart contract static reflection.

Macros

  • Computes and expands into the BLAKE2b 256-bit hash of the string input.
  • Generates a wrapper which can be used for interacting with the contract.
  • Computes the ink! selector of the string and expands into its byte representation.
  • Computes the ink! selector of the string and expands into its u32 representation.

Structs

  • The API behind the self.env() and Self::env() syntax in ink!.
  • Represents some abstract value that is returned by a function. Currently acts as a placeholder.

Enums

  • An error emitted by the smart contracting language.

Traits

Attribute Macros

  • Defines the interface for a chain extension.
  • Entry point for writing ink! smart contracts.
  • Prepares the type to be fully compatible and usable with the storage. It implements all necessary traits and calculates the storage key for types. Packed types don’t have a storage key, but non-packed types (like Mapping, Lazy etc.) require calculating the storage key during compilation.
  • Defines a unit test that makes use of ink!’s off-chain testing capabilities.
  • Marks trait definitions to ink! as special ink! trait definitions.

Derive Macros